﻿<%@ Page Title="Hair Survey" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="HairFacebookApp._HairSurvey" %>

<%@ Register TagPrefix="uc1" TagName="SignedRequest" Src="SignedRequest.ascx" %>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <form id="Form1" runat="server" method="post" action="Default.aspx">
    <asp:ScriptManager ID="MainScriptManager" runat="server" />
    <asp:UpdatePanel ID="pnlMain" runat="server">
        <ContentTemplate>
            <div id="backGroundDiv" runat="server">
                <asp:Button ID="btnStart" Text="Bắt đầu ngay" OnClick="onClickBtnStart" runat="server"
                    CssClass="introButton" />
                <asp:Panel ID="plnQuaySo" runat="server" Visible="false">
                    <asp:Button ID="btnQuaySo" Text="Quay Số" OnClick="onClickBtnQuaySo" runat="server"
                        CssClass="quaySoButton" />
                    <div style="margin-top: 380px">
                        <asp:Label ID="lblQuaySoNotice" runat="server" CssClass="QuaySoLabel">                                  
                        </asp:Label>
                        <br />
                        <br />
                        <asp:Button ID="btnLearnMoreQS" Visible="false" runat="server" Text="Tìm hiểu thêm"
                            OnClientClick="javascript:window.top.location = 'http://www.facebook.com/hoiyeutockhoe'"
                            CssClass="longButton" /><br />
                        <asp:Table ID="tblQuaySoSubmit" runat="server" Visible="false" CssClass="">
                            <asp:TableRow>
                                <asp:TableCell>
                            Họ tên:
                                </asp:TableCell>
                                <asp:TableCell>
                                    <asp:TextBox ID="qsName" runat="server"></asp:TextBox>
                                    <span style="color: Red">*</span>
                                </asp:TableCell>
                            </asp:TableRow>
                            <asp:TableRow>
                                <asp:TableCell>
                            Địa chỉ:
                                </asp:TableCell>
                                <asp:TableCell>
                                    <asp:TextBox ID="qsAddress" runat="server"></asp:TextBox>
                                    <span style="color: Red">*</span>
                                </asp:TableCell>
                            </asp:TableRow>
                            <asp:TableRow>
                                <asp:TableCell>
                            Điện thoại:
                                </asp:TableCell>
                                <asp:TableCell>
                                    <asp:TextBox ID="qsPhone" runat="server"></asp:TextBox>
                                    <span style="color: Red">*</span>
                                </asp:TableCell>
                            </asp:TableRow>
                            <asp:TableRow>
                                <asp:TableCell>
                            E-mail:
                                </asp:TableCell>
                                <asp:TableCell>
                                    <asp:TextBox ID="qsEmail" runat="server"></asp:TextBox>
                                    <span style="color: Red">*</span>
                                </asp:TableCell>
                            </asp:TableRow>
                            <asp:TableRow>
                                <asp:TableCell>
                                &nbsp;
                                </asp:TableCell>
                                <asp:TableCell>
                                    &nbsp;
                                    <asp:Button ID="btnQSSubmit" Text="Đồng ý" OnClick="onClickBtnQSSubmit" runat="server"
                                        CssClass="nextButton" />
                                </asp:TableCell>
                            </asp:TableRow>
                        </asp:Table>
                    </div>
                    <br />
                    <br />
                </asp:Panel>
                <asp:Panel ID="plnGame" runat="server" Visible="false">
                    <h1>
                        <b>Tóc bạn thuộc loại gì?</b></h1>
                    <h3>
                        Hội yêu tóc khỏe</h3>
                    <strong>Hi
                        <asp:Label runat="server" ID="lblName"></asp:Label></strong>
                    <asp:HiddenField ID="hdImage" runat="server" />
                    <asp:HiddenField ID="hdPlace" runat="server" />
                    <asp:HiddenField ID="hdBirthday" runat="server" />
                    <asp:HiddenField ID="hdFacebookID" runat="server" />
                    <asp:HiddenField ID="hdShareToWallMsg" Value="Zoom vào tóc cùng Pantene: http://www.facebook.com/PanteneVietnam/app_382583621783865" runat="server" />          
                    <br />
                    <asp:Panel ID="pnlQuestion" runat="server">
                        <asp:HiddenField ID="nextQ" Value="1" runat="server" />
                        <asp:HiddenField ID="firstA" Value="A" runat="server" />
                        <asp:HiddenField ID="ques2AnsKey" Value="A" runat="server" />
                        <asp:HiddenField ID="ques3AnsKey" Value="A" runat="server" />
                        <asp:HiddenField ID="ques4AnsKey" Value="A" runat="server" />
                        <asp:HiddenField ID="ques5AnsKey" Value="A" runat="server" />                        
                        <asp:Label ID="lblQuestion" runat="server" Text="Label"></asp:Label>
                        <asp:RadioButtonList ID="rdbListAnswer" CssClass="question" runat="server" AutoPostBack="true"
                            OnSelectedIndexChanged="onSelectAnswer">
                        </asp:RadioButtonList>
                        <asp:Panel ID="pnlAnswer5" runat="server" Visible="false">
                            <table cellspacing="5">
                                <tr>
                                    <td>
                                        <div class="daugoi">
                                            <asp:CheckBox ID="cbxA" Text="Dầu gội" AutoPostBack="true" OnCheckedChanged="onChecked" runat="server"/>
                                            <br />
                                            <br />
                                            <asp:TextBox ID="tbxA" CssClass="nonborder" runat="server"></asp:TextBox>
                                        </div>
                                    </td>
                                    <td>
                                        <div class="dauxa">
                                            <asp:CheckBox ID="cbxB" Text="Dầu xả" AutoPostBack="true" OnCheckedChanged="onChecked" runat="server"/>
                                            <br />
                                            <br />
                                            <asp:TextBox ID="tbxB" CssClass="nonborder" runat="server"></asp:TextBox>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <div class="kemu">
                                            <asp:CheckBox ID="cbxC" Text="Kem ủ" AutoPostBack="true" OnCheckedChanged="onChecked" runat="server"/>
                                            <br />
                                            <br />
                                            <asp:TextBox ID="tbxC" CssClass="nonborder" runat="server"></asp:TextBox>
                                        </div>
                                    </td>
                                    <td>
                                        <div class="mask">
                                            <asp:CheckBox ID="cbxD" Text="Mặt nạ" AutoPostBack="true" OnCheckedChanged="onChecked" runat="server"/>
                                            <br />   
                                            <br />                                 
                                            <asp:TextBox ID="tbxD" CssClass="nonborder" runat="server"></asp:TextBox>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                        <br />
                        <asp:Button runat="server" class="speciaBtn" Text="Hoàn tất" Visible="false" Enabled="false"
                            ID="btnNextQuestion" OnClick="onClickNextQuestion" CssClass="nextButton" />
                    </asp:Panel>
                    <asp:Panel ID="pnlResult" runat="server" Visible="false">
                        <div align="center">
                            <h2>
                                kết quả</h2>
                        </div>
                        <br />
                        <asp:Label ID="lblResult" runat="server" Text="TODO: show result"></asp:Label>
                        <br />
                        <br />
                        <div>
                            <asp:Button ID="btnShareToWall" runat="server" Text="Chia sẻ lên Facebook" OnClick="onClickShareToWall"
                                CssClass="longButton" /><br />
                            <asp:Button ID="btnLearnMore" runat="server" Text="Tìm hiểu thêm" OnClientClick="javascript:window.top.location = 'http://www.facebook.com/hoiyeutockhoe'"
                                CssClass="longButton" /><br />
                            <asp:Button ID="btnJoinEvent" runat="server" Text="Tham dự event của chúng tôi" OnClientClick="javascript:window.top.location = 'http://www.facebook.com/hoiyeutockhoe'"
                                CssClass="longButton" /><br />
                            <asp:Button ID="btnTryProduct" runat="server" Text="Quay số trúng thưởng" OnClick="onClickTryProduct"
                                CssClass="longButton" /><br />
                            <br />
                            <asp:Label ID="lblInfo" runat="server" Text=""></asp:Label>
                        </div>
                    </asp:Panel>
                </asp:Panel>
                <uc1:SignedRequest ID="SignedRequest1" runat="server" />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</asp:Content>
